export default [
  {
    title: '基础字段',
    list: [{
      type: 'input',
      label: '单行文本',
      color: "#409eff",
      icon: 'icon-input',
      labelWidth: '',
      hide: false,
      handoff: true,
      layout: 12,
      hideLabel: false,
      customClass: [],
      dataType: "varchar",
      dataLength: 60,
      validateConfig: {
        required: false,
        type: false,
        pattern: false,
        regType:''
      },
      events: {
        change: '',
        focus: '',
        blur: ''
      },
      plugin: {
        type: 'text',
        value: '',
        prepend: '',
        append: '',
        maxlength: '',
        placeholder: '',
        readonly: false,
        showWordLimit: false,
        disabled: false,
        showPassword: false,
        customizeStyle: {
          width: '100%'
        }
      },
      isAdd:  "1",
      editReadonly:  "0",
      isEdit: "1",
      isList: "1",
      isQuery: "0",
      isImport: "1",
      queryType: "eq",
      javaType: "String"
    }, {
      type: 'textarea',
      label: '多行文本',
      color: "#409eff",
      icon: 'icon-textarea',
      labelWidth: '',
      hide: false,
      handoff: true,
      layout: 12,
      hideLabel: false,
      customClass: [],
      dataType: "text",
      dataLength: 0,
      validateConfig: {
        required: false,
        pattern: false
      },
      events: {
        change: '',
        focus: '',
        blur: ''
      },
      plugin: {
        type: 'textarea',
        value: '',
        placeholder: '',
        readonly: false,
        disabled: false,
        customizeStyle: {
          width: '100%'
        }
      },
      isAdd:  "1",
      editReadonly:  "0",
      isEdit: "1",
      isList: "1",
      isQuery: "0",
      isImport: "1",
      queryType: "eq",
      javaType: "String"
    }, {
      type: 'inputNumber',
      label: '计数器',
      icon: 'icon-number',
      labelWidth: '',
      hide: false,
      handoff: true,
      layout: 12,
      hideLabel: false,
      customClass: [],
      dataType: "decimal",
      dataLength: 30,
      validateConfig: {
        required: false
      },
      events: {
        change: '',
        focus: '',
        blur: ''
      },
      plugin: {
        isRange: false,
        value: 0,
        minRows: 0,
        maxRows: 9999,
        step: 1,
        precision: 8,
        controlsPosition: '',
        disabled: false,
        customizeStyle: {
          width: '100%'
        }
      },
      isAdd:  "1",
      editReadonly:  "0",
      isEdit: "1",
      isList: "1",
      isQuery: "0",
      isImport: "1",
      queryType: "eq",
      javaType: "BigDecimal"
    }, {
      type: 'select',
      label: '下拉选择',
      icon: 'icon-select',
      color: '#F3CB20',
      dictType: "",
      dicValue:'',
      labelWidth: '',
      dataType: "varchar",
      dataLength: 30,
      remote: false,
      handoff: true,
      dicData: [
        {label: '选项一', value: 'Option 1'},
        {label: '选项二', value: 'Option 2'},
        {label: '选项三', value: 'Option 3'}
      ],
      remoteType: 'datasource',
      remoteOption: 'optionDefault',
      remoteFunc: 'funcDefault',
      remoteDataSource: '',
      hide: false,
      layout: 12,
      hideLabel: false,
      customClass: [],
      validateConfig: {
        required: false
      },
      events: {
        change: '',
        focus: '',
        blur: ''
      },
      plugin: {
        value: '',
        multiple: false,
        disabled: false,
        clearable: false,
        placeholder: '',
        showLabel: false,
        filterable: false,
        drag: false,
        props: {
          label: 'label',
          value: 'value'
        },
        customizeStyle: {
          width: '100%'
        }
      },
      isAdd:  "1",
      editReadonly:  "0",
      isEdit: "1",
      isList: "1",
      isQuery: "0",
      isImport: "1",
      queryType: "eq",
      javaType: "String"
    }, {
      type: 'radio',
      label: '单选框',
      icon: 'icon-radio',
      labelWidth: '',
      color: '#5896e3',
      dataType: "varchar",
      dictType: "",
      dataLength: 30,
      remote: false,
      dicData: [
        {
          value: 'Option 1',
          label: 'Option 1'
        },
        {
          value: 'Option 2',
          label: 'Option 2'
        },
        {
          value: 'Option 3',
          label: 'Option 3'
        }
      ],
      remoteType: 'datasource',
      remoteOption: 'optionDefault',
      remoteFunc: 'funcDefault',
      remoteDataSource: '',
      hide: false,
      handoff: true,
      layout: 12,
      hideLabel: false,
      customClass: [],
      validateConfig: {
        required: false
      },
      events: {
        change: ''
      },
      plugin: {
        value: '',
        disabled: false,
        showLabel: false,
        inline: false,
        props: {
          label: 'label',
          value: 'value'
        }
      },
      isAdd:  "1",
      editReadonly:  "0",
      isEdit: "1",
      isList: "1",
      isQuery: "0",
      isImport: "1",
      queryType: "eq",
      javaType: "String"
    }, {
      type: 'checkbox',
      label: '多选框',
      icon: 'icon-check-box',
      color: '#5896e3',
      dataType: "varchar",
      dictType: "",
      dataLength: 120,
      labelWidth: '',
      remote: false,
      dicData: [
        {
          value: 'Option 1'
        },
        {
          value: 'Option 2'
        },
        {
          value: 'Option 3'
        }
      ],
      remoteType: 'datasource',
      remoteOption: 'optionDefault',
      remoteFunc: 'funcDefault',
      remoteDataSource: '',
      hide: false,
      handoff: true,
      layout: 12,
      hideLabel: false,
      customClass: [],
      validateConfig: {
        required: false
      },
      events: {
        change: ''
      },
      plugin: {
        value: [],
        disabled: false,
        showLabel: false,
        inline: false,
        all: false,
        props: {
          label: 'label',
          value: 'value'
        }
      },
      isAdd:  "1",
      editReadonly:  "0",
      isEdit: "1",
      isList: "1",
      isQuery: "0",
      isImport: "1",
      queryType: "eq",
      javaType: "String"
    }, {
      type: 'time',
      label: '时间选择器',
      icon: 'icon-time',
      labelWidth: '',
      dataType: "varchar",
      dataLength: 20,
      hide: false,
      handoff: true,
      layout: 12,
      hideLabel: false,
      customClass: [],
      validateConfig: {
        required: false
      },
      events: {
        change: '',
        focus: '',
        blur: ''
      },
      plugin: {
        value: '',
        format: 'HH:mm:ss',
        valueFormat: 'HH:mm:ss',
        readonly: false,
        disabled: false,
        range: false,
        editable: true,
        clearable: true,
        arrowControl: true,
        placeholder: '',
        startPlaceholder: '',
        endPlaceholder: '',
        customizeStyle: {
          width: '100%'
        }
      },
      isAdd:  "1",
      editReadonly:  "0",
      isEdit: "1",
      isList: "1",
      isQuery: "0",
      isImport: "1",
      queryType: "eq",
      javaType: "String"
    }, {
      type: 'date',
      label: '日期选择器',
      icon: 'icon-date',
      labelWidth: '',
      dataType: "date",
      dataLength: 0,
      timestamp: false,
      hide: false,
      handoff: true,
      layout: 12,
      hideLabel: false,
      customClass: [],
      validateConfig: {
        required: false
      },
      events: {
        change: '',
        focus: '',
        blur: ''
      },
      plugin: {
        type: 'date',
        value: '',
        format: 'yyyy-MM-dd',
        valueFormat: 'yyyy-MM-dd',
        readonly: false,
        disabled: false,
        editable: true,
        clearable: true,
        placeholder: '',
        startPlaceholder: '',
        endPlaceholder: '',
        customizeStyle: {
          width: '100%'
        }
      },
      isAdd:  "1",
      editReadonly:  "0",
      isEdit: "1",
      isList: "1",
      isQuery: "0",
      isImport: "1",
      queryType: "eq",
      javaType: "Date"
    }, {
      type: 'rate',
      label: '评价',
      icon: 'icon-score',
      hide: false,
      handoff: true,
      dataType: "float",
      dataLength: 10,
      layout: 12,
      color: '#F3CB20',
      hideLabel: false,
      customClass: [],
      validateConfig: {
        required: false
      },
      events: {
        change: ''
      },
      plugin: {
        max: 5,
        value: 0,
        labelWidth: '',
        showScore: false,
        allowHalf: false,
        disabled: false
      },
      isAdd:  "1",
      editReadonly:  "0",
      isEdit: "1",
      isList: "1",
      isQuery: "0",
      isImport: "1",
      queryType: "eq",
      javaType: "String"
    }, {
      type: 'inputColor',
      label: '颜色选择器',
      color: '#D72513',
      dataType: "varchar",
      dataLength: 10,
      icon: 'icon-color',
      labelWidth: '',
      hide: false,
      handoff: true,
      layout: 12,
      hideLabel: false,
      customClass: [],
      validateConfig: {
        required: false
      },
      events: {
        change: ''
      },
      plugin: {
        value: '',
        showAlpha: false,
        disabled: false,
        customizeStyle: {
          width: '100%'
        }
      },
      isAdd:  "1",
      editReadonly:  "0",
      isEdit: "1",
      isList: "1",
      isQuery: "0",
      isImport: "1",
      queryType: "eq",
      javaType: "String"
    }, {
      type: 'switch',
      label: '开关',
      icon: 'icon-switch',
      color: '#5896e3',
      labelWidth: '',
      dataType: "int",
      dataLength: 1,
      hide: false,
      handoff: true,
      layout: 12,
      hideLabel: false,
      customClass: [],
      validateConfig: {
        required: false
      },
      events: {
        change: ''
      },
      plugin: {
        value: false,
        disabled: false
      },
      isAdd:  "1",
      editReadonly:  "0",
      isEdit: "1",
      isList: "1",
      isQuery: "0",
      isImport: "1",
      queryType: "eq",
      javaType: "Integer"
    }, {
      type: 'slider',
      label: '滑块',
      color: '#D72513',
      icon: 'icon-slider',
      labelWidth: '',
      hide: false,
      handoff: true,
      dataType: "int",
      dataLength: 10,
      layout: 12,
      hideLabel: false,
      customClass: [],
      validateConfig: {
        required: false
      },
      events: {
        change: ''
      },
      plugin: {
        value: 0,
        min: 0,
        max: 100,
        step: 1,
        disabled: false,
        showInput: false,
        customizeStyle: {
          width: '100%'
        }
      },
      isAdd:  "1",
      editReadonly:  "0",
      isEdit: "1",
      isList: "1",
      isQuery: "0",
      isImport: "1",
      queryType: "eq",
      javaType: "Integer"
    }, {
      type: 'font',
      label: '文字',
      icon: 'icon-font',
      labelWidth: '',
      hide: false,
      handoff: true,
      dataType: "varchar",
      dataLength: 255,
      layout: 12,
      hideLabel: false,
      customClass: [],
      plugin: {
        value: 'This is a text',
        effect: 'light',
        effectType: 'default',
        center: false
      },
      isAdd:  "1",
      editReadonly:  "0",
      isEdit: "1",
      isList: "1",
      isQuery: "0",
      isImport: "1",
      queryType: "eq",
      javaType: "String"
    }]
  },
  {
    title: '高级字段',
    list: [{
      type: 'upload',
      label: '文件',
      icon: 'icon-file-upload',
      labelWidth: '',
      dataType: "varchar",
      dataLength: 255,
      color: '#D72513',
      remote: false,
      remoteType: 'datasource',
      remoteFunc: 'funcGetToken',
      remoteDataSource: '',
      hide: false,
      handoff: true,
      layout: 12,
      hideLabel: false,
      customClass: [],
      validateConfig: {
        required: false
      },
      events: {
        uploadSuccess: '',
        uploadError: '',
        uploadRemove: ''
      },
      plugin: {
        action: 'http://localhost:8888/common/upload',
        headers: [],
        data: [],
        accept: '',
        listType: 'text',
        drag: false,
        withCredentials: false,
        showFileList: true,
        multiple: false,
        limit: 10,
        fileSize: 2,
        tip: '',
        oss: '',
        byteUnit: 'MB',
        domain: 'http://tcdn.form.making.link/',
        showCanvas: false,
        disabled: false,
        uploadConfig: {
          home: 'http://localhost:8888',
          resUrl: '',
          fileName: '',
          res: ''
        },
        canvasOption: {
          fontSize: 16,
          opacity: 100,
          bottom: 10,
          right: 10,
          ratio: 1,
          text: '商用通用大水印',
          fontFamily: 'microsoft',
          color: '#999'
        },
        customizeStyle: {
          width: '100%'
        }
      },
      isAdd:  "1",
      editReadonly:  "0",
      isEdit: "1",
      isList: "1",
      isQuery: "0",
      isImport: "1",
      queryType: "eq",
      javaType: "String"
    }, {
      type: 'cascader',
      label: '级联选择器',
      icon: 'icon-cascade',
      labelWidth: '',
      remote: false,
      dataType: "varchar",
      dataLength: 255,
      dicData: [
        {
          value: 'Option 1',
          label: 'Option 1',
          children: [
            {
              value: 'Option 1 - children',
              label: 'Option 1 - children'
            }
          ]
        },
        {
          value: 'Option 2',
          label: 'Option 2',
          children: [
            {
              value: 'Option 2 - children',
              label: 'Option 2 - children'
            }
          ]
        },
        {
          value: 'Option 3',
          label: 'Option 3'
        }
      ],
      remoteType: 'datasource',
      remoteOption: 'optionDefault',
      remoteFunc: 'funcDefault',
      remoteDataSource: '',
      hide: false,
      handoff: true,
      layout: 12,
      hideLabel: false,
      customClass: [],
      validateConfig: {
        required: false
      },
      events: {
        change: '',
        focus: '',
        blur: ''
      },
      plugin: {
        value: [],
        multiple: false,
        disabled: false,
        clearable: false,
        placeholder: '',
        filterable: false,
        props: {
          value: 'value',
          label: 'label',
          children: 'children'
        },
        customizeStyle: {
          width: '100%'
        }
      },
      isAdd:  "1",
      editReadonly:  "0",
      isEdit: "1",
      isList: "1",
      isQuery: "0",
      isImport: "1",
      queryType: "eq",
      javaType: "String"
    }, {
      type: 'treeSelect',
      label: '树形选择器',
      color: "#409eff",
      dataType: "varchar",
      dataLength: 255,
      icon: 'icon-tree-select',
      labelWidth: '',
      treeName: '',
      remote: false,
      dicData: [
        {
          id: 1,
          label: '一级 1',
          children: [{
            id: 4,
            label: '二级 1-1',
            children: [{
              id: 9,
              label: '三级 1-1-1'
            }, {
              id: 10,
              label: '三级 1-1-2'
            }]
          }]
        }, {
          id: 2,
          label: '一级 2',
          children: [{
            id: 5,
            label: '二级 2-1'
          }, {
            id: 6,
            label: '二级 2-2'
          }]
        }, {
          id: 3,
          label: '一级 3',
          children: [{
            id: 7,
            label: '二级 3-1'
          }, {
            id: 8,
            label: '二级 3-2'
          }]
        }
      ],
      remoteType: 'datasource',
      remoteOption: 'optionDefault',
      remoteFunc: 'funcDefault',
      remoteDataSource: '',
      hide: false,
      handoff: true,
      layout: 12,
      hideLabel: false,
      customClass: [],
      validateConfig: {
        required: false
      },
      events: {
        change: '',
        focus: '',
        blur: ''
      },
      plugin: {
        value: "",
        disabled: false,
        clearable: false,
        placeholder: '',
        filterable: false,
        props: {
          value: 'id',
          label: 'label',
          children: 'children'
        },
        customizeStyle: {
          width: '100%'
        }
      },
      isAdd:  "1",
      editReadonly:  "0",
      isEdit: "1",
      isList: "1",
      isQuery: "0",
      isImport: "1",
      queryType: "eq",
      javaType: "String"
    }, {
      type: 'childForm',
      label: '子表单',
      icon: 'icon-child-form',
      labelWidth: '',
      color: '#f3cb20',
      hide: false,
      hideLabel: true,
      customClass: [],
      formType: "tabs",
      validateConfig: {
        required: false
      },
      events: {
        change: '',
        'row-add': '',
        'row-del': ''
      },
      plugin: {
        value: [],
        option: {
          formWidth: '',
          statusIcon: false,
          customClass: [],
          styleSheets: '',
          fit: true,
          stripe: false,
          defaultSort: {},
          showHeader: true,
          highlightCurrentRow: false,
          emptyText: '',
          // 默认列配置
          indexExecute: false,
          indexExecuteLabel: '序号',
          indexExecuteFixed: '',
          indexExecuteWidth: 50,
          // 动态列配置
          align: '',
          headerAlign: '',
          enter: false,
          column: []
        },
        disabled: false,
        page: {
          total: 0,        // 总页数
          pagerCount: 7,   // 超过多少条隐藏
          currentPage: 1,  // 当前页数
          pageSize: 5,     // 每页显示多少条
          smallPaging: true, // 是否使用小分页
          simplePage: false, // 当只有一页时隐藏分页
          pageSizes: [10, 20, 30, 40, 50, 100],
          layout: 'total, prev, pager, next',
          background: false  // 背景颜色
        },
        readonly: false,
        detailModel: false,
        loading: false,
        paging: false
      },
      isAdd:  "1",
      isEdit: "1",
      isList: "0",
      isQuery: "0",
    }, {
      type: 'user',
      label: '用户',
      icon: 'icon-user',
      labelWidth: '',
      hide: false,
      handoff: true,
      layout: 12,
      dataType: "varchar",
      dataLength: 60,
      hideLabel: false,
      customClass: [],
      validateConfig: {
        required: false,
        type: false,
        pattern: false
      },
      events: {
        change: '',
        focus: '',
        blur: ''
      },
      plugin: {
        type: 'text',
        value: '',
        checkbox: false,
        systemUser: true,
        prepend: '',
        append: '',
        placeholder: '',
        readonly: false,
        disabled: false,
        customizeStyle: {
          width: '100%'
        }
      },
      isAdd:  "1",
      editReadonly:  "0",
      isEdit: "1",
      isList: "1",
      isQuery: "0",
      isImport: "1",
      queryType: "eq",
      javaType: "String"
    }, {
      type: 'line',
      label: '分割线',
      title: "分割线标题",
      icon: 'icon-line',
      hide: false,
      handoff: false,
      dataType: "float",
      dataLength: 10,
      layout: 24,
      hideLabel: true,
      contentPosition: "left",
      direction: "horizontal",
      plugin: {
        labelWidth: '',
        value: ""
      },
      isAdd:  "1",
      editReadonly:  "0",
      isEdit: "1",
    }, {
      type: 'institution',
      label: '机构',
      color: '#d72513',
      layout: 12,
      dataType: "varchar",
      dataLength: 60,
      icon: 'icon-institution',
      labelWidth: '',
      remote: false,
      dicData: [],
      remoteType: 'datasource',
      remoteOption: 'optionDefault',
      remoteFunc: 'funcDefault',
      remoteDataSource: '',
      hide: false,
      handoff: true,
      hideLabel: false,
      customClass: [],
      validateConfig: {
        required: false
      },
      events: {
        change: '',
        focus: '',
        blur: ''
      },
      plugin: {
        value: "",
        disabled: false,
        clearable: false,
        placeholder: '',
        filterable: false,
        props: {
          value: 'deptId',
          label: 'name',
          children: 'children'
        },
        customizeStyle: {
          width: '100%'
        }
      },
      isAdd:  "1",
      editReadonly:  "0",
      isEdit: "1",
      isList: "1",
      isQuery: "0",
      isImport: "1",
      queryType: "eq",
      javaType: "String"
    }]
  }
]
